﻿<UserControl x:Class="TrailMap.Controls.DrawTool"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
	<UserControl.Resources>
		<DataTemplate x:Key="TrackDataTemplate">
			<StackPanel Orientation="Horizontal" Width="100" Height="13">
                <Image Width="15" Height="13" d:LayoutOverrides="Height" Source="{Binding Image}" ToolTipService.ToolTip="{Binding Tooltip}"/>
                <TextBlock Text="{Binding Label}" HorizontalAlignment="Left" ToolTipService.ToolTip="{Binding Tooltip}" Margin="5,0,0,0"/>
			</StackPanel>
		</DataTemplate>
	</UserControl.Resources>
    
    <ListBox x:Name="trackButtons" RenderTransformOrigin="0.5,0.5" Width="44" SelectionChanged="trackButtons_SelectionChanged">
    	<ListBox.Projection>
    		<PlaneProjection GlobalOffsetX="34" GlobalOffsetY="-4"/>
    	</ListBox.Projection>
    	<ListBox.RenderTransform>
    		<CompositeTransform Rotation="270"/>
    	</ListBox.RenderTransform>
    	<Image Source="/TrailMap;component/Resources/Bsu.png" RenderTransformOrigin="0.5,0.5" >
    		<Image.RenderTransform>
    			<CompositeTransform Rotation="90"/>
    		</Image.RenderTransform>
    	</Image>
    	<Image Source="/TrailMap;component/Resources/Bmu.png" RenderTransformOrigin="0.5,0.5">
    		<Image.RenderTransform>
    			<CompositeTransform Rotation="90"/>
    		</Image.RenderTransform>
    	</Image>
        <Image Source="/TrailMap;component/Resources/BMl at begin.png" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<CompositeTransform Rotation="90"/>
        	</Image.RenderTransform>
        </Image>
        <Image Source="/TrailMap;component/Resources/BMl at end.png" RenderTransformOrigin="0.5,0.5">
            <Image.RenderTransform>
                <CompositeTransform Rotation="90"/>
            </Image.RenderTransform>
        </Image>
        <!--<ComboBox Width="142" ItemsSource="{Binding}" ItemTemplate="{StaticResource TrackDataTemplate}" Name="trackButtons" />-->
    </ListBox>
</UserControl>
